package com.hc.demo.dao;

import com.hc.demo.domain.JpaDept;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface JpaDeptDao extends JpaRepository<JpaDept, Integer> {
    List<JpaDept> findByDname(String dname);

    List<JpaDept> findByLocNotNull();

    List<JpaDept> findByDnameIgnoreCase(String dname);

    List<JpaDept> findByLoc(String loc);
}
